import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/views/Home'
import Grade from '@/views/Grade'
import News from '@/views/News'
import NewsInfo from '@/views/NewsInfo'
import Privacy from '@/views/Privacy'
import Ico from '@/views/Ico'

//404
import notFound from '@/views/notFound'
Vue.use(Router)

export default new Router({
	
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
		{
			path: '/grade',
			name: 'Grade',
			component: Grade
		},
		{
			path: '/news',
			name: 'News',
			component: News
		},
		{
			path:'/newsinfo',
			name:'newsinfo',
			component:NewsInfo
		},
		{
			path:'/privacy',
			name:'privacy',
			component:Privacy
		},
		{
			path:'/ico/:id',
			name:'ico',
			component:Ico
		},
		{
			path: "/404",
			name: "notFound",
			component: notFound
		},
		{
			path: "*",
			redirect: "/404"
		}
  ]
})
